import instance from './instance';

class Http {
  get = (url, params) => instance.get(url, { params });

  post = (url, data) => instance.post(url, data);

  put = (url, data) => instance.put(url, data);

  delete = (url, data) => instance.delete(url, data);
}

const http = new Http();

export default http;
